home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / program / dtswps.zip / DTSFILES.ZIP / SOMBTYPE.H < prev    next >
C/C++ Source or Header  |  1996-06-24  |  2KB  |  90 lines

  1. /*
  2.  *   COMPONENT_NAME: somk
  3.  *
  4.  *   ORIGINS: 27
  5.  *
  6.  *
  7.  *    25H7912  (C)  COPYRIGHT International Business Machines Corp. 1992,1994,1996 
  8.  *   All Rights Reserved
  9.  *   Licensed Materials - Property of IBM
  10.  *   US Government Users Restricted Rights - Use, duplication or
  11.  *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  12.  */
  13. /* @(#) somk/sombtype.h 2.10.1.4 3/25/96 19:45:45 [6/24/96 08:12:03] */
  14.  
  15. /*
  16.  */
  17.  
  18. /*
  19.  *    SOMBTYPE.H
  20.  *    SOM Base Data Types
  21.  */
  22.  
  23. #ifndef sombtype_h
  24. #define sombtype_h
  25.  
  26. #include <stdarg.h>
  27. #include <stddef.h>
  28.  
  29. /*--------------------------------------------------------------
  30.  * Basic SOM data types for C and C++
  31.  */
  32. /* -- Generic SOM Method Procedure Pointers */
  33. #if defined(__OS2__) && defined(__IBMC__)
  34.   #ifndef __cplusplus
  35.     #pragma linkage( somMethodProc, system )
  36.     #pragma linkage( somTP_somClassInitFunc, system)
  37.   #endif
  38. #endif
  39.  
  40. typedef void* SOMLINK somMethodProc(void*);
  41. typedef somMethodProc SOMDLINK *somMethodPtr;
  42. typedef void SOMLINK somTP_somClassInitFunc(void *somSelf);
  43.  
  44. #ifndef NULL
  45.   #ifdef __cplusplus
  46.     #define NULL 0
  47.   #else
  48.     #define NULL ((void *) 0)
  49.   #endif
  50. #endif
  51.  
  52. typedef char integer1;
  53. typedef short integer2;
  54. typedef unsigned short uinteger2;
  55. typedef long integer4;
  56. typedef unsigned long uinteger4;
  57. typedef float float4;
  58. typedef double float8;
  59. typedef char *zString;                 /* NULL terminated string */
  60. typedef char *fString;                 /* non-terminated string  */
  61. typedef char **somId;
  62. typedef void *somToken;                /* Uninterpretted value   */
  63. typedef signed char signed_char;
  64.  
  65. #ifndef SOM_BOOLEAN
  66.   #define SOM_BOOLEAN
  67.   typedef unsigned char boolean;
  68. #endif /* SOM_BOOLEAN */
  69.  
  70. #define SOM_DynamicMethod  1
  71. #define SOM_StaticMethod   0
  72.  
  73. /*
  74.  *    Comment macros for arguments
  75.  */
  76. #ifndef IN
  77. #define IN
  78. #endif
  79.  
  80. #ifndef OUT
  81. #define OUT
  82. #endif
  83.  
  84. #ifndef INOUT
  85. #define INOUT
  86. #endif
  87.  
  88.  
  89. #endif /* sombtype_h */
  90.